package com.initialize.pub.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA.
 * User: jane
 * Date: 2019/12/16
 * Time: 下午5:29
 * To change this template use File | Settings | File Templates.
 * Description: 系统的环境配置
 */
@Configuration
public class SiteConfig {

    public static boolean FLAG;


    @Value("${test.flag}")
    public void setFLAG(boolean FLAG) {
        if (FLAG) {
            System.err.println("============================当前环境 ==>  [开发]");
        } else {
            System.err.println("============================当前环境 ==>  [上线]");

        }
        SiteConfig.FLAG = FLAG;
    }
}